#include <stdio.h>
#include <ctype.h>
void calculate(char c);
int main(void)
{
	char ch;
	printf("Please input your mind now!(EOF to be quit)\n");
	printf("The letters contained in your input and their numerical positions in the alphabet:\n");
	while ((ch = getchar()) != EOF)
	{
		if(ch=='\n')
			continue;
		calculate(ch);
	}
	return 0;
}
void  calculate(char c)
{
	if (isupper(c))
	{
		int i;
		i = c - 'A' + 1;
		printf("%c--", c);
		printf("%d", i);
		printf(" ");
	}
	if (islower(c))
	{
		int i;
		i = c - 'a' + 1;
		printf("%c--", c);
		printf("%d", i);
		printf(" ");
	}
	if (!islower(c)&&!isupper(c))
		printf("-1 ");
	printf("\n");
}